package unicall.em.services;



import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.alibaba.fastjson.JSONObject;

import unicall.em.dtos.SipAccountDto;
import unicall.em.models.SipAccount;

public interface SipAccountService {

    public void add(SipAccountDto dto);
    
    public void release(String clientNumber);
    
    public void bind(String clientNumber,String agentId);
    
    public void unbind(String clientNumber);
    
    public JSONObject apply(String appId);
    
    public JSONObject release(String appId,String clientNumber);
    
    public Page<SipAccount> queryAll(Specification<SipAccount> specation,Pageable pageable);
    
    
    
}
